package com.lagou.edu.service.impl;

import com.lagou.edu.service.CodeServiceFeignClient;
import org.springframework.stereotype.Component;

@Component  // 别忘了这个注解，还应该被扫描到
public class CodeServiceFallBack implements CodeServiceFeignClient {

    @Override
    public int validate(String email, String code) {
        return 5;
    }
}
